package com.future.hedongjun.mall.bean;

import com.future.baselib.entity.BaseResponse;
import com.google.gson.Gson;
import com.google.gson.JsonObject;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import java.util.ArrayList;

public class GoodsDetailResponse extends BaseResponse {

    public GoodsDetail goodsDetail;
    public GoodsDetail.SpecData specData;

    @Override
    public void parseInfo(String content) throws JSONException {
        goodsDetail = new Gson().fromJson(new JSONObject(content).optString("detail"),GoodsDetail.class);
        specData = new Gson().fromJson(new JSONObject(content).optString("specData"),GoodsDetail.SpecData.class);
    }
}
